#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
#include<stdlib.h>
double a = 3.1415926, b = 12345678.123456789;
void sum(double a)
{
    int i = 0;
    printf("%.6lf ", a);
    while (a >= 10)
    {
        a = a / 10;
        i++;
    }
    printf("%.6lfe+%03d", a, i);
}
int main()
{
    sum(a);
    printf("\n");
    sum(b);
}